<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>翻转图片</title>
    <style>
                /* 图片翻转 */
                .fz{
            position: relative;
            margin: 50px auto;
            width: 700px;
            height: 272px;
            border: 1px solid #000000;
            /* 让盒子里面的元素 以立体空间进行显示 */
            transform-style: preserve-3d;
        }
        .fz>img{
            position: absolute;
            top: 0;
            left: 200px;
            transform: perspective(700px) rotateY(0deg);
            transition: all 1s linear;
            /* 背面是否可见 */
            backface-visibility: hidden;
        }
        .fz:hover > img{
            transform: rotateY(180deg);
        }
        .fz>div{
            position: absolute;
            top: 0;
            left: 200px;
            width: 300px;
            height: 272px;
            background-color: pink;
            text-align: center;
            line-height: 272px;
            transform: perspective(700px) rotateY(-180deg);
            backface-visibility: hidden;
            transition: all 1s linear;
        }
        .fz:hover>div{
            transform: perspective(700px) rotateY(0deg);
        }
    </style>
</head>
<body>
        <!-- 图片翻转 -->
        <div class="fz">
            <img src="./location_bg.jpg" alt="图片">
            <div>图片说明文字</div>
</body>
</html>